#include "hex_dumper.h"
#include <hex.h>

using namespace CryptoPP;

namespace hex_dump
{
	string dump(const unsigned char* buf, size_t length)
	{
		string dump;
		HexEncoder hexDncoder(new StringSink(dump));
		hexDncoder.Put(buf, length, true);
		hexDncoder.MessageEnd();
		return dump;
	}
}
